package com.scau.service.impl.business;

import java.io.Serializable;

import org.springframework.stereotype.Component;

import com.scau.exception.BusinessException;
import com.scau.model.business.BomMaterial;
import com.scau.service.BaseService;


@Component
public class BomMaterialService  extends BaseService<BomMaterial> implements Serializable{
	public void save(BomMaterial bm) throws BusinessException{
		if (null != bm ) {
			if(null != bm.getId()&& 0 != bm.getId()){
				update(bm);
			}else{
				add(bm);
			}
		}else {
			throw new BusinessException("料号不能为空");
		}
	}
}
